<template>
  <div class="right-top">
    <div class="content">
      <div class="left">
        <p>已处理</p>
        <p><span>{{ option.done }}</span>件</p>
      </div>
      <div class="right">
        <p>未处理</p>
        <p><span>{{ option.undone }}</span>件</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      option: {
        // 已处理
        done: 0,
        // 未处理
        undone: 0,
      },
    };
  },

  mounted() {
    this.getData();
  },
  methods: {
    getData() {
      this.option.done = 820;
      this.option.undone = 340;
    },
  },
};
</script>
<style lang='scss' scoped>
.right-top {
  margin: 60px;
  color: #fff;
  padding: 20px;
  border-radius: 4px;
  border: 1px solid #1890ff;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  font-size: 16px;

  .content {
    display: flex;
    justify-content: space-between;

    .left {


      p:nth-child(2) {
        span {
          color: #52c41a;
          font-size: 24px;
          margin-right: 16px;
        }

        margin-top: 16px;
        font-size: 24px;
        font-weight: bold;
      }
    }

    .right {
      p:nth-child(2) {
        span {
          color: #f5222d;
          font-size: 24px;
          margin-right: 16px;
        }

        margin-top: 16px;
        font-size: 24px;
        font-weight: bold;
      }
    }
  }
}
</style>
